package com.shop.cereshop.app.tencent.im.model.transfer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 转账退款记录表
 */
@ApiModel(description="转账退款记录表")
@Entity
@TableName("cere_transfer_refund_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TransferRefundRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="自增ID")
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value="转账订单ID")
    private String transferId;

    @ApiModelProperty(value="退款单号")
    private String refundOrderId;

    @ApiModelProperty(value="退款金额")
    private BigDecimal amount;

    @ApiModelProperty(value="退款类型 (1:过期自动退款  2:用户主动退款)")
    private Integer refundType;

    @ApiModelProperty(value="退款时间")
    private LocalDateTime refundTime;

}